home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 24
/
AMIGAplus Sonderheft 24 (2000)(Falke)(DE)[!].iso
/
PublicDomain
/
Anwendungen
/
MT-RechnungIII
/
PrintDoks
/
ArtikelüberGruppen.artpri
< prev
next >
Wrap
Text File
|
1999-03-27
|
5KB
|
263 lines
2$VER: ArtikelüberGruppen 1.01 (28.03.99)
%!PS-Adobe-3.0
%%Creator: Manfred Tremmel
%%CreationDate: (28.03.1999)
%%Version: 1.01
%%Title: (MT-RechnungIII - Artikelübersicht nach Artikelgruppen)
%%LanguageLevel: 2
%%DocumentMedia: A4 594 839 null () ()
%%DocumentNeededResources: font Times-Roman
%%BoundingBox: 0 0 549 839
%%EndComments
%%BeginnDefaults
%%PageMedia: A4
%%EndDefaults
%%BeginnSetup
<< /PageSize [594 839] >> setpagedevice
/PageSize [594 839] def
/DokumentRandX 54 def
/DokumentRandY 50 def
DruckrandX 720 mul 256 div /DruckrandX exch def
DruckrandY 720 mul 256 div /DruckrandY exch def
DruckrandX DokumentRandX ge
{
0 /DokumentRandX exch def
}
{
DokumentRandX DruckrandX sub /DokumentRandX exch def
} ifelse
DruckrandY DokumentRandY ge
{
PageSize 1 get /DokumentRandY exch def
}
{
PageSize 1 get DokumentRandY sub DruckrandY add /DokumentRandY exch def
} ifelse
/DokumentRandYOriginal DokumentRandY def
%%EndSetup
%%BeginnResource
/reencodedict 5 dict def
/ReEncode
{
reencodedict begin
/newencoding exch def
/newfontname exch def
/basefontname exch def
/basefontdict basefontname findfont def
/newfont basefontdict maxlength dict def
basefontdict
{ exch dup dup /FID ne exch /Encoding ne and
{ exch newfont 3 1 roll put }
{ pop pop }
ifelse
} forall
newfont /FontName newfontname put
newfont /Encoding newencoding put
newfontname newfont definefont pop
end
} def
/ISOLatin8Encoding
[
ISOLatin1Encoding 0 164 getinterval aload pop
/euro
ISOLatin1Encoding 165 91 getinterval aload pop
] def
/getfont {ISOLatin8Encoding ReEncode findfont exch scalefont def} bind def
/getsymbol {findfont exch scalefont def} bind def
%%EndResource
%% Fontpsoidoname, Fontgroesse, Realname, Programm (siehe oben)
/Times10Zeile 10 def
/Times10 Times10Zeile /OF0 /Times-Roman /OF0 getfont
/Times24Zeile 24 def
/Times24 Times24Zeile /OF0 /Times-Roman /OF0 getfont
/Seite 1 def
/SeitenNr 4 string def
%% Definition der Überschrift
/Ueberschrift
{
/BoxX1 DokumentRandX def
/BoxX2 486 def
/BoxY1 DokumentRandY 2 sub def
/BoxY2 Times10Zeile def
0.9 setgray
BoxX1 BoxY1 BoxX2 BoxY2 rectfill
0.0 setgray
BoxX1 BoxY1 BoxX2 BoxY2 rectstroke
DokumentRandX 3 add DokumentRandY moveto
(ArtikelNr) show
DokumentRandX 50 add DokumentRandY moveto
(ArtikelNr2) show
DokumentRandX 125 add DokumentRandY moveto
(Artikelbezeichnung) show
DokumentRandX 325 add DokumentRandY moveto
(Einheit) show
DokumentRandX DokumentRandY moveto
(MWSt) dup stringwidth
pop 400 exch sub
DokumentRandX add DokumentRandY moveto show
DokumentRandX DokumentRandY moveto
(Einzelpreis) dup stringwidth
pop 480 exch sub
DokumentRandX add DokumentRandY moveto show
DokumentRandY Times10Zeile sub 5 sub /DokumentRandY exch def
} def
/ArtikelGRPTab ArtikelTabelle length array def
ArtikelGRPTab 0 () put
/ArtikelGRPAnz 1 def
{
/GRPVGLWert (\377\377\377) def
ArtikelTabelle
{
51 get /ArtikelGRP exch def
ArtikelGRPTab ArtikelGRPAnz 1 sub get ArtikelGRP lt
ArtikelGRP GRPVGLWert lt and
{
/GRPVGLWert ArtikelGRP def
} if
} forall
GRPVGLWert (\377\377\377) eq
{
exit
} if
ArtikelGRPTab ArtikelGRPAnz GRPVGLWert put
ArtikelGRPAnz 1 add /ArtikelGRPAnz exch def
} loop
%% Ausgabe der Kopfdaten
Times24 setfont
DokumentRandX DokumentRandY moveto
(Artikelübersicht nach Artikelgruppen) dup stringwidth pop
PageSize 0 get exch sub 2 div cvi DokumentRandY moveto show
DokumentRandY Times24Zeile sub Times24Zeile sub /DokumentRandY exch def
Times10 setfont
Ueberschrift
/ArtikelGRPPos 0 def
ArtikelGRPAnz
{
ArtikelGRPTab ArtikelGRPPos get () ne
{
70 Times10Zeile 3 mul cvi add DokumentRandY gt
{
DokumentRandX 450 add 50 moveto
(Seite: ) show
Seite SeitenNr cvs show
showpage
/DokumentRandY DokumentRandYOriginal def
Ueberschrift
Seite 1 add /Seite exch def
} if
DokumentRandY Times10Zeile sub /DokumentRandY exch def
DokumentRandX 3 add DokumentRandY moveto
(Artikelgruppe: ) show
ArtikelGRPTab ArtikelGRPPos get show
DokumentRandY Times10Zeile sub /DokumentRandY exch def
} if
ArtikelTabelle
{
dup 51 get ArtikelGRPTab ArtikelGRPPos get eq
{
70 DokumentRandY gt
{
DokumentRandX 450 add 50 moveto
(Seite: ) show
Seite SeitenNr cvs show
showpage
/DokumentRandY DokumentRandYOriginal def
Ueberschrift
Seite 1 add /Seite exch def
} if
dup 0 get
DokumentRandX 3 add DokumentRandY moveto
show
dup 1 get
DokumentRandX 50 add DokumentRandY moveto
show
dup 3 get
DokumentRandX 125 add DokumentRandY moveto
show
dup 5 get
DokumentRandX 325 add DokumentRandY moveto
show
dup 8 get
DokumentRandX DokumentRandY moveto
dup stringwidth
pop 400 exch sub
DokumentRandX add DokumentRandY moveto
show
dup 26 get 0 get exch 23 get get
DokumentRandX DokumentRandY moveto
dup stringwidth
pop 480 exch sub
DokumentRandX add DokumentRandY moveto
show
DokumentRandY Times10Zeile sub /DokumentRandY exch def
}
{
pop
} ifelse
} forall
ArtikelGRPPos 1 add /ArtikelGRPPos exch def
} repeat
DokumentRandX 450 add 50 moveto
(Seite: ) show
Seite SeitenNr cvs show
showpage
%%Trailer
clear
%%EOF